package com.ep.thirdPlatformProject.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ep.thirdPlatformProject.system.entity.SyncOARecordEntity;

import java.util.Date;

public interface SyncOARecordService extends IService<SyncOARecordEntity> {


    /**
     * Find按代码和时间有最近记录
     * true-> 有记录 false->无记录
     *
     * @param empCode   emp代码
     * @param formId    表单id
     * @param dateLimit 日期限制
     * @return {@link Boolean }
     */
    Boolean findHasRecentRecordByCodeAndTime(String empCode, Integer formId, Boolean dateLimit);


    /**
     * 插入一条记录
     *
     * @param record 记录
     */
    void insertOneRecord(SyncOARecordEntity record);


}
